package gui.especialidad;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import dao.EspecialidadDAO;
import negocio.Especialidad;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author jorge
 */
public class RegistrarEspecialidadGUI extends HttpServlet {

   protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
            
            String nombre=request.getParameter("nombre");
            String salida;
            salida="<HTML>"
                    +"<HEAD>"
                    + "<META http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />"
                    + "<TITLE>Gestión de Especialidad</TITLE>"
                    + "<link rel='stylesheet' type='text/css' href='estilos/gestion.css'> "
                    + "</HEAD>"
                    + "<BODY>"
                   ;
            out.println(salida);
            out.println("Se va a registrar una nueva especialidad AHORA");
           
                    salida+= "</body> "
                    + " </html>  ";
            out.println(salida);
            out.close();
    } finally {            
            out.close();
        }
    }

}
